package Logic.EventSample.Goods.Use;

import FrameWork.Event.Trigger;
import FrameWork.Model.Player;
import org.springframework.stereotype.Component;

//使用道具事件触发器
@Component
public class UseGoodTrigger extends Trigger<UseGoodHandler> {

    public void fire(Player player, int goodsId, int cnt){
        for (UseGoodHandler handler:getEventHandlers()){
            handler.onUseGood(player,goodsId,cnt);
        }
    }

}
